<?php
    include_once("conn.php");//链接数据库文件引用
        if($_GET['action']=="del"){
        $sql="delete from anpai where id = ".$_GET['id'];
        $result=$pdo->exec($sql);
        if($result)//判断删除是否成功
		{
			echo "<script>alert('删除成功');location='se.php';</script>";
		}
		else
		{
			echo "删除失败请重试";
		}
    }
?>